package com.csy.aservice.controller;

import com.csy.aservice.feign.AService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/aservice")
public class AController {

    @Autowired
    private AService aService;

    @RequestMapping ("/getB")
    public String getBService(){
        System.out.println("------AService");
        //调用服务B的接口
        String BService = aService.getCService();
        return "--AAAAService \n" + BService;
    }
}
